/**
 * 
 */
package com.vanstone.imgapp.api.img.services;

import java.util.List;

import com.vanstone.imgapp.api.img.Comment;

/**
 * @author shipeng <br />
 *         评论业务API
 */
public interface CommentService {

  public static final String SERVICE = "commentService";

  /**
   * 添加评论
   * 
   * @param articleID
   * @param content
   * @return
   */
  Comment addComment(long articleID, String content);

  /**
   * 删除评论
   * 
   * @param commentID
   */
  void deleteComment(long commentID);

  /**
   * 获取文章下的评论信息
   * 
   * @param articleID
   * @param offset
   * @param limit
   * @return
   */
  List<Comment> getComments(long articleID, long offset, long limit);

  /**
   * 获取文章全部下的评论信息
   * 
   * @param articleID
   * @return
   */
  long getTotalComments(long articleID);

}
